﻿using HuiLian.Cloud.ViewModel;
using HuiLian.Cloud.View;
using HuiLian.Cloud.ViewModel.Base;
using HuiLian.Model.Models;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Windows.Input;

namespace HuiLian.Cloud.ViewModel
{
    public class ProductListWindowViewModel : ViewModelBase
    {
        private List<Food> foods = new List<Food>()
        {
            new Food(){ Id=1, No="001", Name="牛肉", Stock=10, Price=45.5, Unit="个", Date="2020-05-08 12:00:00", Image="../Images/Foods/1jpg"},
            new Food(){ Id=2, No="002", Name="牛肉", Stock=10, Price=45.5, Unit="个", Date="2020-05-08 12:00:00", Image="../Images/Foods/1jpg"},
            new Food(){ Id=3, No="003", Name="牛肉", Stock=10, Price=45.5, Unit="个", Date="2020-05-08 12:00:00", Image="../Images/Foods/1jpg"},
            new Food(){ Id=4, No="004", Name="牛肉", Stock=10, Price=45.5, Unit="个", Date="2020-05-08 12:00:00", Image="../Images/Foods/1jpg"},
            new Food(){ Id=5, No="005", Name="牛肉", Stock=10, Price=45.5, Unit="个", Date="2020-05-08 12:00:00", Image="../Images/Foods/1jpg"},
            new Food(){ Id=1, No="001", Name="牛肉", Stock=10, Price=45.5, Unit="个", Date="2020-05-08 12:00:00", Image="../Images/Foods/1jpg"},
            new Food(){ Id=2, No="002", Name="牛肉", Stock=10, Price=45.5, Unit="个", Date="2020-05-08 12:00:00", Image="../Images/Foods/1jpg"},
            new Food(){ Id=3, No="003", Name="牛肉", Stock=10, Price=45.5, Unit="个", Date="2020-05-08 12:00:00", Image="../Images/Foods/1jpg"},
            new Food(){ Id=4, No="004", Name="牛肉", Stock=10, Price=45.5, Unit="个", Date="2020-05-08 12:00:00", Image="../Images/Foods/1jpg"},
            new Food(){ Id=5, No="005", Name="牛肉", Stock=10, Price=45.5, Unit="个", Date="2020-05-08 12:00:00", Image="../Images/Foods/1jpg"}
        };

        public List<Food> Foods { get { return foods; } set { foods = value; OnPropertyChanged("Foods"); } }
    }
}
